package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Mapper接口类
 *
 * @Author mr.wu
 * @Date 2024-11-8 9:59
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {


    /**
     * 自定义SQL查询用户
     * @param tel
     * @return
     */
    @Select("select * from t_user where tel=#{tel}")
    User findByTel(String tel);
}
